package com.wn.ticket.service.impl;

import com.wn.ticket.entity.SearchHistory;
import com.wn.ticket.entity.User;
import com.wn.ticket.mapper.SearchHistoryMapper;
import com.wn.ticket.service.SearchHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SearchHistoryServiceImpl implements SearchHistoryService {
    @Autowired
    private SearchHistoryMapper searchHistoryMapper;
    @Override
    public void HistoryInsert(SearchHistory searchHistory) {
        searchHistoryMapper.HistoryInsert(searchHistory);
    }

    @Override
    public List<SearchHistory> getHistory(int id) {
        return searchHistoryMapper.getHistory(id);
    }
}
